#include<iostream>
#include<stdlib.h>
#include<sys/types.h>
#include<unistd.h>

using namespace std;

int main()
{
    pid_t child_d=fork();
    if(child_d>0)
    {
        sleep(30);
        cout<<"the parent process is finished"<<endl;
    }
    else
    {
        cout<<"the child process is finished"<<endl;
        exit(0);
    }
    return 0;
}